﻿namespace QuickMail.View.Controls
{
    using QuickMail.DataModels;
    using QuickMail.View.Windows;

    /// <summary>
    /// Properties control for send emails.
    /// </summary>
    public partial class SendControl
    {
        /// <summary>
        /// The constructor.
        /// </summary>
        public SendControl()
        {
            InitializeComponent();
            SetCurrentTranslate();
        }

        /// <summary>
        /// Sets the current translation for form elements.
        /// </summary>
        private void SetCurrentTranslate()
        {
            SubjectTextBlock.Text = StaticFields.Lang.PropertyWindow.Subject;
            MailToTextBlock.Text = StaticFields.Lang.PropertyWindow.MailTo;
            MailToTextBox.ToolTip = StaticFields.Lang.PropertyWindow.MailToTt;
            FileTypesTextBlock.Text = StaticFields.Lang.PropertyWindow.FilesTypes;
            FilesTypesTextBox.ToolTip = StaticFields.Lang.PropertyWindow.FilesTypesTt;
            MessageTextBlock.Text = StaticFields.Lang.PropertyWindow.MessageText;
            MessageTextBox.ToolTip = StaticFields.Lang.PropertyWindow.MessageTextTt;
        }

        //private void MessageFromFileCheckBox_OnUnchecked(object sender, RoutedEventArgs e)
        //{
        //    MessageTextBox.Visibility = Visibility.Visible;
        //    MessageTextBox.Focus();
        //}

        //private void MessageFromFileCheckBox_OnChecked(object sender, RoutedEventArgs e)
        //{
        //    MessageTextBox.Visibility = Visibility.Collapsed;
        //}
    }
}
